package com.sf.service;

import com.sf.domain.Department;

import java.util.List;

public interface IDepartmentService {
    /**
     * 查询数据库中部门信息
     * @return
     */
    List<Department> list();

    /**
     * 根据id删除部门信息
     * @param id
     */
    void delete(Long id);

    /**
     * 保存部门
     * @param employee
     */
    void save(Department employee);

    /**
     * 更新
     * @param department
     */
    void update(Department department);

    Department get(Long id);
}
